<script src="/assets/js/qrcode.init.data.js" type="text/javascript"></script>
<script src="/assets/js/qrcode.proc.data.js" type="text/javascript"></script>
<script src="/assets/js/jquery-ui-1.8.12/development-bundle/ui/i18n/jquery.ui.datepicker-ko.js" type="text/javascript"></script>
<?php
session_start();

include_once $_SERVER['DOCUMENT_ROOT'] . '/core/data.dialog.php';
if (!$_SESSION['username']) {
	echo "<script>$('#dlg_user_login').dialog('open');</script>";
}
else {
	echo "<script>$('#data-contain').show();</script>";
}
?>

<div id="data-contain" class="ui-widget" style="display:none;">
	<table id="tbl_data" class="ui-widget ui-widget-content">
		<thead>
			<tr class="ui-widget-header ">
				<th width="20"><input type="checkbox" id="selectall"></th>
				<th width="30">번호</th>
				<th width="40">시도</th>
				<th width="40">구군</th>
				<th width="100">도로명</th>
				<th width="60">번지</th>
				<th width="30">사용</th>
				<th width="60">단위</th>
				<th width="100">도면</th>
				<th width="80">일자</th>
				<th width="100">위도</th>
				<th width="100">경도</th>
				<th width="230">QR Code</th>
			</tr>
		</thead>
		<tbody id="tbody_data">
		</tbody>
		<tfoot>
			<tr><td colspan="13" width="100%"><hr width="100%" height="1" color="#a6c9e2"></td></tr>
			<tr>
				<td colspan="5">
					<img title="엑셀 파일 업로드" src="assets/img/ico/001_24.png" onclick="open_upload_dialog();"
					style="cursor:pointer; border:none; width:24; height:24;" />
					<img title="엑셀 파일 다운로드" src="assets/img/ico/001_22.png" onclick="open_download_dialog();" 
					style="cursor:pointer; border:none; width:24; height:24;" />
					&nbsp;&nbsp;
					<img title="데이터 추가" src="assets/img/ico/001_01.png" onclick="open_add_dialog();"
					style="cursor:pointer; border:none; width:24; height:24;" />
					<img title="데이터 수정" src="assets/img/ico/001_45.png" onclick="open_edit_dialog();"
					style="cursor:pointer; border:none; width:24; height:24;" />
					<img title="데이터 삭제" src="assets/img/ico/001_02.png" onclick="open_delete_dialog();"
					style="cursor:pointer; border:none; width:24; height:24;" />
					&nbsp;&nbsp;
					<img title="데이터 검색" src="assets/img/ico/001_37.png" onclick="open_search_dialog();"
					style="cursor:pointer; border:none; width:24; height:24;" />
					<img title="데이터 초기화" src="assets/img/ico/001_39.png" onclick="refresh_data();"
					style="cursor:pointer; border:none; width:24; height:24;" />
				</td>
				<td colspan="7" align="center">
					<div id="div_nav"></div>
				</td>
				<td align="right">
					<p id="div_record_display"></div>
				</td>
			</tr>
		</tfoot>
	</table>
</div>
 